package com.dxy.lc.controller;

import com.dxy.lc.base.Resp;
import com.dxy.lc.config.WebConfigProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/lc/config")
public class ConfigController {

    @Autowired
    private WebConfigProperties webConfigProperties;

    @GetMapping("/getWebConfigs")
    public Resp<Map<String, Object>> getWebConfigs() {
        return Resp.bizSuccess(webConfigProperties.getConfigs());
    }
}
